package com.jinlia.show.modules.wxapp.controller;

import com.jinlia.show.modules.base.model.query.FreightChargesQuery;
import com.jinlia.show.modules.base.model.vo.FreightChargesAdapterVO;
import com.jinlia.show.modules.base.system.service.FreightChargesAdapterMapperService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("freightChargesAdapter")
public class FreightChargesAdapterController {
    @Autowired
    FreightChargesAdapterMapperService freightChargesAdapterMapperService;

    @PostMapping("/calculateMoney")
    public FreightChargesAdapterVO calculateMoney(@RequestBody FreightChargesQuery queryParams) {
        FreightChargesAdapterVO freightChargesAdapterVO = freightChargesAdapterMapperService.calculateMoney(queryParams);
        return freightChargesAdapterVO;
    }
}
